package com.tyk.bookstore.back.storage.model.query;


import com.tyk.bookstore.back.common.core.model.page.PageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 库存
 */
@Data
public class StockPageQuery extends PageQuery {

    @Schema(description = "仓库ID")
    @Min(1)
    private Long warehouseId;

    @Schema(description = "书籍ID")
    private Long bookId;

    @Schema(description = "库存数量：起始")
    @Min(0)
    private Long numFrom;

    @Schema(description = "库存数量：终止")
    @Min(0)
    private Long numTo;

    @Schema(description = "创建时间：起始")
    private LocalDateTime createTimeFrom;

    @Schema(description = "创建时间：终止")
    private LocalDateTime createTimeTo;

    @Schema(description = "更新时间：起始")
    private LocalDateTime updateTimeFrom;

    @Schema(description = "更新时间：终止")
    private LocalDateTime updateTimeTo;

}
